module.exports=app=>{
  const mongoose = require('mongoose')
  mongoose.connect('mongodb://localhost:27017/kings', {
    useNewUrlParser: true,
    useFindAndModify: true,
    useCreateIndex: true,
    useUnifiedTopology: true
  })
  require('require-all')(__dirname+'/../models')//引入全部模块
}